<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class ustime</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.timed__utils_8hpp" title="Header &lt;boost/interprocess/timed_utils.hpp&gt;">
<link rel="prev" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">
<link rel="next" href="timed__utils_8hpp_1a825a05961e2967ba9bba6b7661ff3f69.html" title="Function usduration_from_seconds">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1interprocess_1_1usduration.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.timed__utils_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="timed__utils_8hpp_1a825a05961e2967ba9bba6b7661ff3f69.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class ustime</span></h2>
<p>boost::interprocess::ustime</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.timed__utils_8hpp" title="Header &lt;boost/interprocess/timed_utils.hpp&gt;">boost/interprocess/timed_utils.hpp</a>&gt;

</span>
<span class="keyword">class</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>

  <span class="comment">// <a class="link" href="../boost_container_header_reference/classboost_1_1container_1_1slist.html#id105-bb">public member functions</a></span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a5f9c600183aa4b56a07bb978ce4197f2"><span class="identifier">ustime</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint64_t</span> <span class="special">=</span> <span class="number">0u</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1adc9890ba9706a08406fc4151112d60ff"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a2b68dad0fd7335e2a40e60645ad21024"><span class="keyword">operator</span><span class="special">+</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1abf87daaf6656cfba138c98a677a8bb0b"><span class="keyword">operator</span><span class="special">-=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a73f4e7ab68254239d41d4f413492c018"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a649f13727e743defe2bab28328695532"><span class="keyword">operator</span><span class="special">&lt;</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a4f463d4ba98950fb93bb938ffb6d7683"><span class="keyword">operator</span><span class="special">&gt;</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a2049b8c5fa3e1b04ac02c605f34f2990"><span class="keyword">operator</span><span class="special">&lt;=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a9a8ab7cd756fcf9565d09ec65c8b1b44"><span class="keyword">operator</span><span class="special">&gt;=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint64_t</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html#doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a54ae7b1ef8b5f78c589b1336af5f50db"><span class="identifier">get_microsecs</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.16.19.3.78.6.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.16.19.3.78.6.4.2"></a><h3>
<a name="id105-bb"></a><code class="computeroutput">ustime</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a5f9c600183aa4b56a07bb978ce4197f2"></a><span class="identifier">ustime</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint64_t</span> microsecs <span class="special">=</span> <span class="number">0u</span><span class="special">)</span><span class="special">;</span></pre>
<p>Constructs a time point that is "microsecs" duration away from the epoch of the system </p>
</li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1adc9890ba9706a08406fc4151112d60ff"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a2b68dad0fd7335e2a40e60645ad21024"></a><span class="keyword">operator</span><span class="special">+</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1abf87daaf6656cfba138c98a677a8bb0b"></a><span class="keyword">operator</span><span class="special">-=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a73f4e7ab68254239d41d4f413492c018"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1usduration.html" title="Class usduration">usduration</a> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a649f13727e743defe2bab28328695532"></a><span class="keyword">operator</span><span class="special">&lt;</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> other<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a4f463d4ba98950fb93bb938ffb6d7683"></a><span class="keyword">operator</span><span class="special">&gt;</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> other<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a2049b8c5fa3e1b04ac02c605f34f2990"></a><span class="keyword">operator</span><span class="special">&lt;=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> other<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a9a8ab7cd756fcf9565d09ec65c8b1b44"></a><span class="keyword">operator</span><span class="special">&gt;=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1interprocess_1_1ustime.html" title="Class ustime">ustime</a> <span class="special">&amp;</span> other<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint64_t</span> <a name="doxygen.boost_interprocess_header_reference.classboost_1_1interprocess_1_1ustime_1a54ae7b1ef8b5f78c589b1336af5f50db"></a><span class="identifier">get_microsecs</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Returns the stored count that represents microseconds from epoch </p>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2005-2024 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1interprocess_1_1usduration.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interprocess/indexes_reference.html#doxygen.boost_interprocess_header_reference.timed__utils_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="timed__utils_8hpp_1a825a05961e2967ba9bba6b7661ff3f69.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
